package com.ln.store.dao;

import java.sql.SQLException;

import com.ln.store.domain.User;

public interface UserDao {

	/**
	 * 注册用户
	 * @return
	 */
	public void	userRegister(User user) throws SQLException;
	
	/**
	 * 激活用户
	 * @param code
	 * @return
	 */
	public User userActive(String code) throws SQLException;
	
	/**
	 * 更新用户信息
	 * @param user
	 */
	public void updateUser(User user) throws SQLException;
	
	/**
	 * 用户登录
	 * @param user
	 * @return
	 */
	public User userLogin(User user) throws SQLException;
}
